import 'package:flutter_enjoy_plus/constants/index.dart';
import 'package:flutter_enjoy_plus/utils/RequestDio.dart';
// 获取验证码接口
Future getCodeApi(params){
  return requestdio.get(HTTP_PATH.GET_CODE,params: params);
}
// 登录接口
Future loginApi(data){
  return requestdio.post(HTTP_PATH.LOGIN,data:data);
}
// 获取用户信息接口
Future getUserInfoApi() => requestdio.get(HTTP_PATH.USER_INFO);

// 更新用户昵称和头像
Future updateUserInfoApi(data) => requestdio.put(HTTP_PATH.USER_INFO,data:data);

//上传图片
Future uploadImageApi(data) => requestdio.post(HTTP_PATH.UPLOAD_IMAGE,data:data);